package com.ap.core.domain;

import org.hibernate.annotations.TypeDef;

import javax.persistence.AttributeOverride;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * User: Rohit.Dixit
 */
@Entity
@Table(name = "T_RESPONSE_CODE")
@AttributeOverride(name = "id",column = @Column(name = "RESPONSE_CODE"))
@TypeDef(name = "id",  typeClass = String.class)
public class ResponseCode extends Identifiable<String>{

	private static final long serialVersionUID = 3142554515786871193L;

	@Column(name = "RESPONSE_CODE_NAME")
    private String responseCodeName;
	
	@Column(name = "RESPONSE_CODE_DESCRIPTION")
    private String responseCodeDescription;

    private ResponseCode(){

    }


    public String getResponseCodeDescription() {
        return responseCodeDescription;
    }

    public String getResponseCodeName() {
        return responseCodeName;
    }
}
